home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1618 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: sascha.esrac.ele.tue.nl!leon
  2. From: leon@esrac.ele.tue.nl (Leon Woestenberg)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: CreateNewProc() in Amiga E
  5. Date: 21 Jan 1996 23:13:19 GMT
  6. Organization: Eindhoven Student Radio Amateur Club
  7. Message-ID: <4duhaf$irc@tuegate.tue.nl>
  8. References: <618.6593T1134T901@mailbox.swipnet.se>
  9. NNTP-Posting-Host: sascha.esrac.ele.tue.nl
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Daniel Adolfsson (m-29431@mailbox.swipnet.se) wrote:
  13.  
  14. : How should I get this E-program to work? When I run it, a guru-requester
  15. : comes up telling me that program 'subtask' failed...
  16.  
  17. : PROC subtaskcode()
  18. :     DisplayBeep(0)
  19. :     Delay(50)
  20. :     Signal(mama,SIGBREAKF_CTRL_F)
  21. : ENDPROC
  22.  
  23. For one thing, the global data pointer isn't set when the subtaskcode is
  24. entered. Use the geta4() proc from the E distribution to set it. In general,
  25. there are a lot of other issues you need to be aware of in order to write
  26. safe multithreaded programs. 
  27.  
  28. :   _/ Systemfriendly programmer | Amiga - Back for the Future! | IRC:  \_
  29.  
  30. I hope so. Don't do threads the easy way!
  31.  
  32. Greetings, Leon.
  33.  
  34.